package cn.org.eshow.service;

import cn.org.eshow.bean.query.ProductQuery;
import cn.org.eshow.common.page.Page;
import cn.org.eshow.model.Product;

import javax.jws.WebService;
import java.util.List;

@WebService
public interface ProductManager extends GenericManager<Product, Integer> {

    /**
     * @param query
     * @return
     */
    List<Product> list(ProductQuery query);

    /**
     * @param query
     * @return
     */
    Page<Product> search(ProductQuery query);

    /**
     * @param query
     * @return
     */
    Product check(ProductQuery query);

    Long count(ProductQuery query);

    Product updateProduct(Product old, Product product);

    void updateFavoriteSize(Product product, Integer addSize );


}
